package com.lixy.demo.springcloud.ch7_2_5.controller;

import org.springframework.stereotype.Component;

import com.lixy.demo.springcloud.ch7_2_5.vo.User;

@Component
public class FeignClientFallback implements UserFeignClient {

	@Override
	public User findById(Long id) {
		User user = new User();
		user.setId( -1L );
		user.setName( "默认用户" );
		return user;
	}

}
